package com.juben.svr.domain;

import com.juben.svr.domain.Enum.EmailType;

public class Email_validation {
    private Integer id;
    private String email;
    private String code;
    private String time;
    private String type;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }


    @Override
    public String toString() {
        return "Email_validation{" +
                "id=" + id +
                ", email='" + email + '\'' +
                ", code='" + code + '\'' +
                ", time='" + time + '\'' +
                ", type='" + type + '\'' +
                '}';
    }

    public EmailType getEmailType() {
        return EmailType.fromValue(type);
    }

    public void setEmailType(EmailType type1) {
        this.type = type1.getValue();
    }
}
